home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / paragraphformat.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  917 b   |  40 lines

  1. <!--- This shows ParagraphFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. ParagraphFormat Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  12. <BODY  bgcolor="#FFFFD5">
  13.  
  14. <H3>ParagraphFormat Example</H3>
  15.  
  16. <P>Enter some text into this textarea, and
  17. see it returned as HTML.
  18.  
  19. <CFIF IsDefined("form.myTextArea")>
  20.  
  21. <P>Your text area, formatted
  22. <P><CFOUTPUT>#ParagraphFormat(form.myTextArea)#</CFOUTPUT>
  23.  
  24. </CFIF>
  25.  
  26. <!--- use #Chr(10)##Chr(13)# to simulate a line feed/carriage
  27. return combination; i.e, a return --->
  28. <FORM ACTION="paragraphformat.cfm" METHOD="POST">
  29. <TEXTAREA NAME="MyTextArea" COLS="35" ROWS=8>
  30. This is sample text and you see how it scrolls<CFOUTPUT>#Chr(10)##Chr(13)#</CFOUTPUT>
  31. From one line <CFOUTPUT>#Chr(10)##Chr(13)##Chr(10)##Chr(13)#</CFOUTPUT> to the next
  32. </TEXTAREA>
  33.  
  34. <INPUT TYPE="Submit" NAME="show me the html version">
  35. </FORM>
  36.  
  37. </BODY>
  38.  
  39. </HTML>       
  40.